import { Component } from '@angular/core';
import { ViewController} from 'ionic-angular';

@Component({
    selector: 'page-semester-choose',
    templateUrl: 'semester-choose.html'
  })
  export class SemesterChoosePage {
      semester;
      semesterList;
      
      constructor( public viewCtrl:ViewController){
          this.semesterList = [];
          this.semesterList.push("七年级上学期");
          this.semesterList.push("七年级下学期");
          this.semesterList.push("八年级上学期");
          this.semesterList.push("八年级下学期");
          this.semesterList.push("九年级上学期");
          this.semesterList.push("九年级下学期");

      }

      chooseSemester(i){
        this.viewCtrl.dismiss(this.semesterList[i]);
      }
  }